package com.dfrz.household.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dfrz.household.bean.User;

import java.util.List;
import java.util.Map;

public interface IUserService {

    public User getUserById(Integer id);

    public List<User> getUsers();

    /**
     * 带参数查询
     * @param parm
     * @return
     */
    public List<User> getUsersParm(Map<String,String> parm);

    /**
     * 分页查询
     * @param parm
     * @param pageNo
     * @param pageSize
     * @return
     */
    public IPage<User> getUserByPage(Map<String,String> parm, Integer pageNo , Integer pageSize);

    public int delete(Integer id);

    public int save(User user);

    public int update(User user);

    public User queryOneByLoginName(String uname);


}
